<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:exist="http://exist.sourceforge.net/NS/exist">
    <title>Seach  Terms</title>
    <style type="text/css">
      @namespace xf url("http://www.w3.org/2002/xforms");     
      xf|label {font-weight: bold}
   </style>
    <xf:model>
        <xf:instance xmlns="">
            <data>
                <q/>
            </data>
        </xf:instance>
        <xf:submission id="search" method="get" action="search.xq" replace="all"/>
        <!-- this puts the initial cursor in the input field -->
        <xf:action ev:event="xforms-ready">
            <xf:setfocus control="search-input"/>
        </xf:action>
    </xf:model>
    <body>
        <a class="breadcrumb" href="../../index.xhtml">Apps Home</a> &gt;
        <a class="breadcrumb" href="../index.xhtml">Terms</a>
        <h1>Search Terms</h1>
        <xf:input ref="q" id="search-input" incremental="true">
            <xf:label>Search string:</xf:label>
            <xf:action ev:event="DOMActivate">
                <xf:send submission="search"/>
            </xf:action>
        </xf:input>
        <xf:submit submission="search">
            <xf:label>Search</xf:label>
        </xf:submit>
        <a href="advanced-search.xhtml">Advanced Search</a>
        <xf:switch>
            <xf:case id="default"/>
            <xf:case id="case-busy">
                <p>Searching...</p>
            </xf:case>
            <xf:case id="case-submit-error">
                <p>submit-error</p>
            </xf:case>
        </xf:switch>
    </body>
</html>